package com.eshealthy.dao;

import com.eshealthy.entity.Department;
import com.eshealthy.entity.Doctor;
import com.eshealthy.entity.Manager;
import com.eshealthy.entity.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface AdminDao {
    List<Patient> findAllPatient(@Param("start")Integer start,@Param("rows") Integer rows);
    Manager findByTel(String tel);
    Integer findTotalsDoctor();
    Integer findTotalsPatient();
    List<Doctor> findAllDoctor(@Param("start")Integer start,@Param("rows")Integer rows);
    void deleteDoctor(String id);
    void deletePatient(String id);
    void deleteDepartment(String id);
    void saveDoctor(Doctor doctor);
    Doctor findDoctor(String id);
    void savePatient(Patient patient);
    Patient findPatient(String id);
    List<Department> findAllDepartment(@Param("start")Integer start, @Param("rows")Integer rows);
    void saveDepartment(Department department);
    Department findDepartment(String id);
    void deleteDoctorArea(String id);
    void registerDepartment(Department department);

    Integer findTotalsDepartment();

    Manager findAllAdmin(String username);

    void save(Manager manager);

    void registerArea(Integer area);
}
